package subnarines;
import javax.swing.*;

public class Ball extends SeaObject{

    public Ball(int x,int y){
        super(20,20,x,y,2);
    }

    @Override
    public void move() {
        y -= speed;
    }

    public boolean isOutOfBounds(){
        return this.y < 150 - this.height;
    }

    public ImageIcon getImage(){
        return Images.ball;
    }

}